﻿@model IEnumerable<AnhDuyShop.Models.AdvCompany>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.IDAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NameAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CompanyAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DescriptionAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LinkAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PercentAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Details)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FromDay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ToDay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriceAdv)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Active)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IDAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NameAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CompanyAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescriptionAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LinkAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PercentAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Details)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FromDay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ToDay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceAdv)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Active)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
